import React from 'react';

const List = (props) => {
    return (
      <div>
        {
          props.comments.map((item) => (
            <div key={item.msg + item.name}>{item.name}: {item.msg} {item.rating}</div>
          ))
        }
      </div>
    );
}

export default List;
